<template>
  <div class="mainPage-container">
    <!--    顶部固定区域-->
    <div class="fixed-top ">
      <div class="wrapper fixed-content">
        <div class="left">
          <span>left</span>
        </div>
        <div class="right">
          <span>right</span>
        </div>
      </div>
    </div>
    <div class="content">
      <div class="left">
        <router-view name="QuestionTypes"></router-view>
      </div>
      <div class="right">
        <router-view name="Questionnaire"></router-view>
      </div>
    </div>
  </div>
</template>

<script>
import QuestionTypes from '@/view/mainPage/left/QuestionTypes.vue'
import Questionnaire from '@/view/mainPage/right/Questionnaire.vue'

export default {
  name: 'MainPage',
  components: {
    QuestionTypes,
    Questionnaire
  }
}
</script>

<style lang="less" scoped>

.mainPage-container {
  width: 100%;
  // 顶部固定区域
  .fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 48px;
    background-color: #313131;

    .fixed-content {
      display: flex;
      justify-content: space-between;
      line-height: 48px;
      color: white;

      .left {
        //padding: 10px;
      }

      .right {

      }
    }

  }

  .content {
    display: flex;
    justify-content: space-between;
    height: calc(100vh - 56px);

    .left {
      width: 230px;
      height: 100%;
      background-color: white;
    }

    .right {
      height: 100%;
      width: 1060px;
      overflow: auto;
      background-color: white;
    }
  }
}

</style>
